public class Test {
    public static boolean judge(int[] array) {
        int num = 0;
        for (int i = 0; i < array.length; i++) {
            if(array[i] % 2 != 0) {
                num++;
            } else {
                num = 0;
            }
            if(num == 3) {
                return true;
            }
        }
        return false;
    }
    public static void main(String[] args) {
        int[] array = new int[]{1,2,34,3,4,5,7,23,12};
        System.out.println(judge(array));
    }
}
